package t02;

import t02.Card;

import java.util.List;

public class CardTest {
    public static void main(String[] args) {
        //创建DeckOfCards对象
        DeckOfCards deckOfCards = new DeckOfCards();
        //洗牌
        deckOfCards.shuffle();
        //发牌
        List<List<Card>> hands = deckOfCards.dealHands(4, 13);
        //遍历所有手牌
        for (int i = 0; i < hands.size(); i++) {
            System.out.println("玩家" + (i + 1) + "的牌：");
            //遍历当前玩家的每张牌
            for (Card card : hands.get(i)) {
                System.out.println(card);
            }
            System.out.println();
        }
    }
}
